find a transaction profitable